package cn.ulyer.common.properties;


import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "login.config")
public class LoginProperties {


    /**
     * token过期时间 单位小时
     */
    private Integer tokenExpire = 2;

    /**
     * 验证码长度
     */
    private Integer verifyCodeLength = 4;

    /**
     * 单位分钟 验证码过期
     */
    private Integer codeExpire = 1;

    private String privateKey;

    private String verifyCodeChars = "0123456789";

    private Integer codeImgHeight ;

    private Integer codeImgWidth ;
}
